package com.york.tinyrpc.protoss;

import com.york.tinyrpc.example.common.model.User;
import com.york.tinyrpc.example.common.service.UserService;
import com.york.tinyrpc.protoss.springboot.startert.annotation.TinyRpcReference;
import org.springframework.stereotype.Service;

@Service
public class ExampleServiceImpl {

    @TinyRpcReference
    private UserService userService;

    public void test() {
        User user = new User();
        user.setName("york");
        User resultUser = userService.getUser(user);
        System.out.println(resultUser.getName());
    }
}
